//
//  XSCusObject.h
//  fp
//
//  Created by xingshuai on 2020/11/10.
//

#import <Foundation/Foundation.h>

typedef NS_ENUM(NSInteger, FontWeightStyle) {
    FontWeightStyleMedium, // 中黑体
    FontWeightStyleSemibold, // 中粗体
    FontWeightStyleLight, // 细体
    FontWeightStyleUltralight, // 极细体
    FontWeightStyleRegular, // 常规体
    FontWeightStyleThin, // 纤细体
};

NS_ASSUME_NONNULL_BEGIN

@interface XSCusObject : NSObject
// 获取版本号
+(NSString *)getAppVersion;
// 获取app名字
+(NSString *)getAppBundleName;

@end

// 颜色
@interface UIColor (custom)

+ (UIColor *) colorWithHexString:(NSString *)hexstr;
+ (UIColor *) colorWithHexString:(NSString *)hexstr alpha:(CGFloat)alphaValue;

@end

// 字体
@interface UIFont (custom)

+ (UIFont *)pingFangSCWithWeight:(FontWeightStyle)fontWeight size:(CGFloat)fontSize;

@end

// 字符串手否为空
@interface NSString (custom)

+(BOOL)trimEmpty:(NSString *)str;

@end




NS_ASSUME_NONNULL_END
